Remove Method (KeyValuePair)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if a dictionary contains a given KeyValuePair, and if so, removes it. This implementation checks to see if the dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals) the value. If so, the key-value pair is removed.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public override bool Remove(
	KeyValuePair<TKey, TValue> item
)
Visual Basic (Declaration)
Public Overrides Function Remove ( _
	item As KeyValuePair(Of TKey, TValue) _
) As Boolean
Visual C++
public:
virtual bool Remove (
	KeyValuePair<TKey, TValue> item
) override

Parameters

item
KeyValuePair<(Of <TKey, TValue>)>
A KeyValuePair containing the Key and Value to check for.

Return Value

True if the item was found and removed. False otherwise.

See Also